<template>
	<view class="store-page">
		<nav-bar title="入驻" :showLeftIcon="true" :leftSlot="false"></nav-bar>
		<scroll-view class="content-box" scroll-y>
			<view class="logistics">
				<view class="title">
					<text>物流网点</text>
					<view class="location">
						<u-icon name="map-fill" color="#2979ff" size="16"></u-icon>
						<text>北京市</text>
					</view>
				</view>
				<view class="logistics-list">
					<view v-for="item,index in logisticsList" :key="index" class="item-list">
						<view>
							<text>{{item.name}}</text>
							<text @click="clickMore('/subPages/settleIn/operationNetworkList')">查看更多</text>
						</view>
						<view>
							<text>{{item.companyName}}</text>
							<view>
								<text>联系人：{{item.relation}}</text>
								<text>联系电话：{{item.phone}}</text>
							</view>
						</view>
						<!-- <view>
							<text>暂无信息</text>
						</view> -->
					</view>
					<view class="more" @click="clickMore('/subPages/settleIn/operatingCompanyList')">
						<text>查看更多运营网点</text>
					</view>
				</view>
			</view>
			<view class="automobile-sell">
				<view class="title">
					<text>汽车销售公司</text>
					<text class="more">查看更多</text>
				</view>
				<view class="automobile-sell-list">
					<view v-for="item,index in logisticsList" :key="index" class="item-list">
						<text>{{item.companyName}}</text>
						<view>
							<text>联系人：{{item.relation}}</text>
							<text>联系电话：{{item.phone}}</text>
						</view>
					</view>
				</view>
			</view>
			<view class="enter">
				<view class="title">
					<text>入驻选择</text>
				</view>
				<view class="enter-list">
					<view v-for="item,index in enterList" :key="index" class="item-list" @click="clickEnter(item)">
						<view class="img">
							<image :src="item.image" mode="widthFix"></image>
						</view>
						<view>
							<text>{{item.title}}</text>
							<text>{{item.intro}}</text>
						</view>
					</view>
				</view>
			</view>
		</scroll-view>
		<!-- <you-tabs :activeName="tabActive" :tabsList="tabsList" @tabClick="clickTabItem" :showMoreTab="true"></you-tabs> -->
		<!-- 	<you-scroll 
			:loadingHeight="loadingHeight" 
			:mainHeight="scrollHeight" 
			:isAllData="isAllData"
			:isRequestSuccess="isRequestSuccess" 
			@onRefresh="onRefresh" 
			@loadMore="loadMore">
			<template>
				
			</template>
		</you-scroll> -->
	</view>
</template>

<script>
	import {
		baseIconUrl,
		baseImgUrl
	} from '@/config'
	export default {
		name: 'Store',
		components: {},
		data() {
			return {
				loadingHeight: '',
				scrollHeight: '',
				logisticsList: [{
						name: 'A运营网点名称',
						companyName: 'A运营网点下的公司名称',
						relation: '钱经理',
						phone: 13585347037,
					},
					{
						name: 'B运营网点名称',
						companyName: 'B运营网点下的公司名称',
						relation: '王经理',
						phone: 13585347037,
					},
				],
				enterList: [{
						title: '物流承运商入驻',
						intro: '这是一小段简短的关于此选项的介绍',
						image: '/static/images/enter/logistics.png',
						push: '/subPages/enter/logisticsCarriersEnter',
					},
					{
						title: '物流网点申请',
						intro: '这是一小段简短的关于此选项的介绍',
						image: '/static/images/enter/dot.png',
						push: '',
					},
					{
						title: '汽车销售入驻',
						intro: '这是一小段简短的关于此选项的介绍',
						image: '/static/images/enter/sell.png',
						push: '',
					},
				]
			}
		},

		async onLoad() {
			this.scrollHeight = this.$store.getters.heightData.mainHeight - 48 + 'px'
			this.loadingHeight = this.$store.getters.heightData.mainHeight - 68 + 'px'

		},
		async onShow() {

		},
		methods: {
			clickMore(push) {
				uni.navigateTo({
					url: push
				});
			},
			clickEnter(item) {
				uni.navigateTo({
					url: item.push
				});
			}
		}
	}
</script>
<style lang="scss" scoped>
	.store-page {
		background: #ffffff;

		.content-box {
			height: calc(100vh - 188rpx);
			padding: 0 20rpx;
			background: #ffffff;

			.logistics {
				.title {
					justify-content: space-between;

					.location {
						font-size: 28rpx;
						display: flex;
					}
				}

				.logistics-list {
					padding-top: 10rpx;
					box-sizing: border-box;
					background: #f4fbff;
					border-radius: 20rpx;
					border: 2rpx solid #9bd5ff;

					.item-list {
						padding: 0 20rpx;

						>view {
							display: flex;
							justify-content: space-between;

							&:first-child {
								text {
									&:last-child {
										color: #3287ff;
										font-size: 26rpx;
									}
								}
							}

							&:last-child {
								display: flex;
								flex-direction: column;

								view {
									color: #808587;
									font-size: 24rpx;
									display: flex;
									justify-content: space-between;
								}
							}
						}

						text {
							padding: 16rpx 0;
						}
					}

					.more {
						width: 100%;
						text-align: center;
						border-top: 2rpx solid #9bd5ff;
						padding: 20rpx 0;
						font-size: 26rpx;
						color: #3287ff;
					}
				}
			}

			.title {
				position: relative;
				display: flex;
				padding: 20rpx 0;
				padding-left: 10rpx;

				>text {
					&:nth-of-type(1) {
						font-weight: 550;
					}
				}

				&::after {
					position: absolute;
					left: 0;
					top: calc(50% - 12rpx);
					content: '';
					display: inline-block;
					width: 4rpx;
					height: 24rpx;
					background: #1777ff;
				}
			}

			.automobile-sell {
				.title {
					justify-content: space-between;

					.more {
						color: #3287ff;
						font-size: 26rpx;
					}
				}

				.automobile-sell-list {
					.item-list {
						margin-bottom: 20rpx;

						>view {
							display: flex;
							justify-content: space-between;
							margin-top: 20rpx;
							color: #808587;
							font-size: 24rpx;

							text {
								&:nth-of-type(2) {
									padding-right: 40rpx;
								}
							}
						}
					}
				}
			}

			.enter {
				.enter-list {
					padding-bottom: 1rpx;

					.item-list {
						padding: 30rpx 40rpx;
						background: #f6fbff;
						border-radius: 16rpx;
						margin-bottom: 18rpx;
						display: flex;

						.img {
							width: 72rpx;
							height: 72rpx;

							image {
								width: 100%;
							}
						}

						view {
							&:last-child {
								margin-left: 40rpx;

								text {
									display: block;

									&:first-child {
										font-weight: 600;
										font-size: 30rpx;
									}

									&:last-child {
										font-size: 24rpx;
										color: #bcc0c3;
									}
								}
							}
						}
					}
				}
			}
		}
	}
</style>